package com.corpgovernment.organization.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 同步员工请求实体
 */
@Data
public class SyncEmployeeCallBackRequestEntity implements Serializable {

//    public static final String SYNC_EMPLOYEE_OPERATION_TYPE_ADD = "A";
//    public static final String SYNC_EMPLOYEE_OPERATION_TYPE_UPDATE = "U";
//    public static final String SYNC_EMPLOYEE_OPERATION_TYPE_DELETE = "D";
//
//    /**
//     * 员工ID，对应客户公司员工主键
//     */
//    private String uid;
//    /**
//     * 被同步系统（即商旅系统）中员工主键
//     */
//    private String uidOfPlatform;
//    /**
//     * 操作类型（A新增 U修改 D删除）
//     */
//    private String type;
//    /**
//     * 是否操作成功
//     */
//    private Boolean result;
//    /**
//     * 失败原因
//     */
//    private String failReason;
//
//
//    public SyncEmployeeCallBackRequestEntity() {
//    }
    
    private String authKey;

    private String recordId;

    private Integer totalCount;

    private Integer successCount;

    private Integer failCount;

    private String actionTime;

    private List<FailInfo> failInfoList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class FailInfo{
        /**
         *  关联的员工行数
         */
        private String mainLineNo;

        private Integer sheetIndex;

        private String sheetName;

        private String lineNo;

        private String failReason;

    }

}
